<!DOCTYPE html>
<html>
  <link rel="match" href="layers-002-print-ref.html"/>
  <link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"/>
  <style>
@layer layer2, layer1;
@page b{
    margin: 0;
}
@layer layer1 {
    @page {
        margin: 1cm;
    }
}
@layer layer2 {
    @page {
        margin: 0;
    }
}
div {
    width: 1cm;
    height: 1cm;
    border: 2px solid red;
}
  </style>
  <body>
    <div style="border-color: lightblue"></div>
    <div style="page: b; border-color: pink"></div>
  </body>
</html>
